﻿
using System;
using System.Collections.Generic;
using System.Text;

namespace 员工类
{
    class Employee
    {

        //2.员工类Employee
        // 字段：姓名，工作年限，月薪、
        protected string Name { get;set; }
        protected int Year { get; set; }
        protected int Money { get; set; }
        protected int q { get; set; }
        public void Print()
        {
            Console.WriteLine("{0}工作了{1}年，月薪为{2}，因此年薪为{3}元",Name,Year,Money,q);
        }
    }
}
